package istar.impl;

import istar.IActor;
import istar.IElement;
import istar.IGoal;

public class Goal extends AbstractElement implements IGoal {

	private int state = UNDECIDED;
	private String goalType = IGoal.ACHIEVE;
	
	public Goal(String _name){
		super(_name);
	}
	
	public Goal(String _name, IActor owner){
		super(_name, owner);
	}

	@Override
	public int getState() {
		return state;
	}

	@Override
	public void setState(int value) {
		this.state = value;
	}

	@Override
	public boolean achieved() {
		// TODO Auto-generated method stub
		return (state== IElement.SATISFIED);
	}

	@Override
	public String getGoalType() {
		return goalType;
	}

	@Override
	public void setGoalType(String _type) {
		this.goalType = _type;
	}

}